// MyPNG.h: interface for the CMyPNG class.
//
//////////////////////////////////////////////////////////////////////

#pragma once

#include "png.h"
#include "pngstruct.h"
#include "zlib.h"

class CMyPNG  
{
public:
	static bool isPNG(LPCTSTR lpFilename);
	bool bReadPNG(LPCTSTR lpFilename);
	bool bWritePNG(LPCTSTR lpFilename);
	CMyPNG();
	virtual ~CMyPNG();

	png_infop	info_ptr;
	png_infop	end_info_ptr;
	png_uint_32	width, height;
	png_bytep	pImg;
	BYTE		bBPP;
};
